package cn.tedu.voice.system.ex;


import cn.tedu.voice.system.mvc.ServiceCode;

/**
 * 业务异常
 *
 * @author java@ccl.cn
 * @version 0.0.1
 */
public class ServiceException extends RuntimeException{
    private ServiceCode serviceCode;

    public ServiceException(ServiceCode serviceCode) {
        this.serviceCode = serviceCode;
    }

    public ServiceException(String message, ServiceCode serviceCode) {
        super(message);
        this.serviceCode = serviceCode;
    }


    public ServiceCode getServiceCode() {
        return serviceCode;
    }
}
